#!/bin/bash

echo "Enter the text in the strings language, then Ctrl+D to compile and run it"
TEMPFILE="__temp__.j"
CLASSNAME="StringsDemo"
java -cp strings.jar:/usr/share/antlr-3/lib/antlr3.jar StringsMain /proc/self/fd/0 "$TEMPFILE" "$CLASSNAME"
java -jar jasmin.jar "$TEMPFILE"
java "$CLASSNAME"

rm "$TEMPFILE"
